/*
 *  Platform_Main.cpp
 *  Fridge
 *
 *  Created by Jeremy Abel on 7/10/12.
 *  Copyright 2012 __MyCompanyName__. All rights reserved.
 *
 */

#include "Main.h"

#include "Platform_Main.h"

//#include <CoreFoundation/CoreFoundation.h>
#include <iostream>

void Platform::Initialise()
{
    /*
	CFBundleRef mainBundle = CFBundleGetMainBundle();
    CFURLRef resourcesURL = CFBundleCopyResourcesDirectoryURL(mainBundle);
    char path[PATH_MAX];
    if (!CFURLGetFileSystemRepresentation(resourcesURL, TRUE, (UInt8 *)path, PATH_MAX))
    {
        // error!
    }
    CFRelease(resourcesURL);
	
    chdir(path);
     */

    char *path=NULL;
    size_t size;
    chdir("..");
    chdir("..");
    chdir("..");
    path=getcwd(path,size);
    FridgeLogf("PATH: %s", path);
}

void Platform::Shutdown()
{
}

// eof
